#import "OnyxIlluminateCell.h"


@implementation OnyxIlluminateCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setBreezeQuaint:(OnyxIlluminateModel *)breezeQuaint {
	_breezeQuaint = breezeQuaint;

	//: 配置cell的UI
	if (breezeQuaint.vowElevate.count > 0) {
		[self.hazeImageView sd_setImageWithURL:[NSURL URLWithString:breezeQuaint.vowElevate[0]] placeholderImage:nil];
	}

	if (breezeQuaint.vowElevate.count > 0) {
		[self.pirateImageView sd_setImageWithURL:[NSURL URLWithString:breezeQuaint.vowElevate[0]] placeholderImage:nil];
	}



}
- (UIView *)balanceInvincibleView {
	if (!_balanceInvincibleView) {
	
        _balanceInvincibleView = [UIView new];
	}
	return _balanceInvincibleView;
}

//: wonderment 的点击事件
- (void)action_3 {}

- (UIImageView *)hazeImageView {
	if (!_hazeImageView) {
	
        _hazeImageView = [UIImageView new];
        _hazeImageView.contentMode = UIViewContentModeScaleAspectFill;
        _hazeImageView.clipsToBounds = YES;
        _hazeImageView.layer.cornerRadius = 1;
        _hazeImageView.layer.masksToBounds = YES;
        UIImage *resilientAnticipateXenon = [UIImage imageNamed:@"images/image_4.png"];
        if (resilientAnticipateXenon) {
	        _hazeImageView.image = resilientAnticipateXenon;
        }
	}
	return _hazeImageView;
}

- (UIView *)cableView {
	if (!_cableView) {
	
        _cableView = [[UIView alloc] init];
        _cableView.frame = CGRectMake(1, 21, 70, 68);
	}
	return _cableView;
}

- (void)vortexYarnInitUIKitView {

    //: 描述_0
    UILabel *heatwave = [[UILabel alloc] initWithFrame:CGRectZero];
    heatwave.frame = CGRectMake(35, 18, 77, 156);
    heatwave.text = @"label_0";
    heatwave.font = [UIFont systemFontOfSize:13 weight:UIFontWeightRegular];
    heatwave.textColor = [UIColor colorWithRed:26/255.0 green:248/255.0 blue:116/255.0 alpha:0.5];
    heatwave.textAlignment = NSTextAlignmentCenter;
    heatwave.numberOfLines = 0;
    self.xenialButterflySilhouetteLabel = heatwave;
    [self.contentView addSubview:heatwave];

	//: 描述_1
	[self.contentView addSubview:self.balanceInvincibleView];
	[self.balanceInvincibleView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(88);
		make.height.mas_equalTo(145);
		make.top.equalTo(@(29));
		make.bottom.equalTo(@(15));
	}];


    //: 描述_2
    self.velvetConquerTextField = [[UITextField alloc] init];
    [self.contentView addSubview:self.velvetConquerTextField];
	[self.velvetConquerTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(98);
		make.height.mas_equalTo(142);
		make.top.equalTo(@(15));
	}];


    //: 描述_3
    UIButton *wonderment = [UIButton new];
    wonderment.size = CGSizeMake(127, 71);
    wonderment.left = 16;
    wonderment.top = 6;
    UIImage *kaleidoscopeRadiateKingdom = [UIImage imageNamed:@"images/icon_3.png"];
    if (kaleidoscopeRadiateKingdom) {
	    [wonderment setImage:kaleidoscopeRadiateKingdom forState:UIControlStateNormal];
    }
    [wonderment setTitle:@"button_3" forState:UIControlStateNormal];
    [wonderment setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [wonderment setTitleColor:[UIColor colorWithRed:34/255.0 green:139/255.0 blue:158/255.0 alpha:0.7] forState:UIControlStateNormal];
    [wonderment setTitleColor:[UIColor colorWithRed:130/255.0 green:72/255.0 blue:147/255.0 alpha:0.8] forState:UIControlStateSelected];
    [wonderment addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    self.leapIdealYardBtn = wonderment;
    [self.contentView addSubview:wonderment];

	//: 描述_4
	[self.contentView addSubview:self.hazeImageView];
	[self.hazeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(62);
		make.height.mas_equalTo(31);
		make.bottom.equalTo(@(27));
	}];


    //: 描述_5
    self.pirateImageView = [UIImageView new];
    self.pirateImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.pirateImageView.clipsToBounds = YES;
    self.pirateImageView.layer.cornerRadius = 2;
    self.pirateImageView.layer.masksToBounds = YES;
    UIImage *keenZeal = [UIImage imageNamed:@"images/image_5.png"];
    if (keenZeal) {
	    self.pirateImageView.image = keenZeal;
    }
    [self.contentView addSubview:self.pirateImageView];
	[self.pirateImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(80);
		make.height.mas_equalTo(116);
		make.bottom.equalTo(@(14));
	}];

	//: 描述_6
	[self.contentView addSubview:self.cableView];


    //: 描述_7
    self.flowImageView = [UIImageView new];
    self.flowImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.flowImageView.clipsToBounds = YES;
    self.flowImageView.layer.cornerRadius = 7;
    self.flowImageView.layer.masksToBounds = YES;
    UIImage *wispForestRadiant = [UIImage imageNamed:@"images/image_7.png"];
    if (wispForestRadiant) {
	    self.flowImageView.image = wispForestRadiant;
    }
    [self.contentView addSubview:self.flowImageView];
	[self.flowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(170);
		make.height.mas_equalTo(68);
		make.top.equalTo(@(27));
	}];
}


@end
